﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBLL;
using IDAL;

namespace BLL
{
    public partial class BLLSession 
    {
	   public int SaveChanges(string type)
        {
            IDBSessionFactory sessFactory = DI.Spring.GetObject<IDBSessionFactory>("DBSessFactory");
            var iDbSession = sessFactory.GetDBSession();
            return iDbSession.SaveChanges(type);
        }       


        		
		IObject_BLL iObject_BLL;
		public IObject_BLL IObject_BLL
		{
			get
			{
				if(iObject_BLL==null)
					iObject_BLL= new Object_BLL();
				return iObject_BLL;
			}
			set
			{
				iObject_BLL= value;
			}
		}
	
    }
	public partial class BLLSession : IBLLSession
    {
        		#region 01 业务接口 IDeliveryPeriodType_DAL
		IDeliveryPeriodType_BLL iDeliveryPeriodType_BLL;
		public IDeliveryPeriodType_BLL IDeliveryPeriodType_BLL
		{
			get
			{
				if(iDeliveryPeriodType_BLL==null)
					iDeliveryPeriodType_BLL= new DeliveryPeriodType_BLL();
				return iDeliveryPeriodType_BLL;
			}
			set
			{
				iDeliveryPeriodType_BLL= value;
			}
		}
		#endregion

        		#region 02 业务接口 IMaterial_DAL
		IMaterial_BLL iMaterial_BLL;
		public IMaterial_BLL IMaterial_BLL
		{
			get
			{
				if(iMaterial_BLL==null)
					iMaterial_BLL= new Material_BLL();
				return iMaterial_BLL;
			}
			set
			{
				iMaterial_BLL= value;
			}
		}
		#endregion

        		#region 03 业务接口 IMaterialType_DAL
		IMaterialType_BLL iMaterialType_BLL;
		public IMaterialType_BLL IMaterialType_BLL
		{
			get
			{
				if(iMaterialType_BLL==null)
					iMaterialType_BLL= new MaterialType_BLL();
				return iMaterialType_BLL;
			}
			set
			{
				iMaterialType_BLL= value;
			}
		}
		#endregion

        		#region 04 业务接口 IPaymentType_DAL
		IPaymentType_BLL iPaymentType_BLL;
		public IPaymentType_BLL IPaymentType_BLL
		{
			get
			{
				if(iPaymentType_BLL==null)
					iPaymentType_BLL= new PaymentType_BLL();
				return iPaymentType_BLL;
			}
			set
			{
				iPaymentType_BLL= value;
			}
		}
		#endregion

        		#region 05 业务接口 IProduct_DAL
		IProduct_BLL iProduct_BLL;
		public IProduct_BLL IProduct_BLL
		{
			get
			{
				if(iProduct_BLL==null)
					iProduct_BLL= new Product_BLL();
				return iProduct_BLL;
			}
			set
			{
				iProduct_BLL= value;
			}
		}
		#endregion

        		#region 06 业务接口 IProductInfo_DAL
		IProductInfo_BLL iProductInfo_BLL;
		public IProductInfo_BLL IProductInfo_BLL
		{
			get
			{
				if(iProductInfo_BLL==null)
					iProductInfo_BLL= new ProductInfo_BLL();
				return iProductInfo_BLL;
			}
			set
			{
				iProductInfo_BLL= value;
			}
		}
		#endregion

        		#region 07 业务接口 IPurchaseMode_DAL
		IPurchaseMode_BLL iPurchaseMode_BLL;
		public IPurchaseMode_BLL IPurchaseMode_BLL
		{
			get
			{
				if(iPurchaseMode_BLL==null)
					iPurchaseMode_BLL= new PurchaseMode_BLL();
				return iPurchaseMode_BLL;
			}
			set
			{
				iPurchaseMode_BLL= value;
			}
		}
		#endregion

        		#region 08 业务接口 IPurchaseModeSection_DAL
		IPurchaseModeSection_BLL iPurchaseModeSection_BLL;
		public IPurchaseModeSection_BLL IPurchaseModeSection_BLL
		{
			get
			{
				if(iPurchaseModeSection_BLL==null)
					iPurchaseModeSection_BLL= new PurchaseModeSection_BLL();
				return iPurchaseModeSection_BLL;
			}
			set
			{
				iPurchaseModeSection_BLL= value;
			}
		}
		#endregion

        		#region 09 业务接口 IPurchaseType_DAL
		IPurchaseType_BLL iPurchaseType_BLL;
		public IPurchaseType_BLL IPurchaseType_BLL
		{
			get
			{
				if(iPurchaseType_BLL==null)
					iPurchaseType_BLL= new PurchaseType_BLL();
				return iPurchaseType_BLL;
			}
			set
			{
				iPurchaseType_BLL= value;
			}
		}
		#endregion

        		#region 10 业务接口 ISupplier_DAL
		ISupplier_BLL iSupplier_BLL;
		public ISupplier_BLL ISupplier_BLL
		{
			get
			{
				if(iSupplier_BLL==null)
					iSupplier_BLL= new Supplier_BLL();
				return iSupplier_BLL;
			}
			set
			{
				iSupplier_BLL= value;
			}
		}
		#endregion

        		#region 11 业务接口 ISupplierBankCard_DAL
		ISupplierBankCard_BLL iSupplierBankCard_BLL;
		public ISupplierBankCard_BLL ISupplierBankCard_BLL
		{
			get
			{
				if(iSupplierBankCard_BLL==null)
					iSupplierBankCard_BLL= new SupplierBankCard_BLL();
				return iSupplierBankCard_BLL;
			}
			set
			{
				iSupplierBankCard_BLL= value;
			}
		}
		#endregion

        		#region 12 业务接口 ISupplierModeType_DAL
		ISupplierModeType_BLL iSupplierModeType_BLL;
		public ISupplierModeType_BLL ISupplierModeType_BLL
		{
			get
			{
				if(iSupplierModeType_BLL==null)
					iSupplierModeType_BLL= new SupplierModeType_BLL();
				return iSupplierModeType_BLL;
			}
			set
			{
				iSupplierModeType_BLL= value;
			}
		}
		#endregion

            }
}